package OOday04;

public class B extends A{
    public void info(){
        System.out.println("B info");
    }
    public static void main(String[] args) {
        B b=new B();
        A a=b;  //向上造型，小到大自动转换
        a.info();
        a.show();
    }
}
